import request from '@/utils/request'

// 查询常用下载列表
export function listDownloadInfo(query) {
  return request({
    url: '/business/downloadInfo/list',
    method: 'get',
    params: query
  })
}

// 查询常用下载所有列表
export function listAllDownloadInfo(query) {
  return request({
    url: '/business/downloadInfo/listAll',
    method: 'get',
    params: query
  })
}

// 查询常用下载详细
export function getDownloadInfo(id) {
  return request({
    url: '/business/downloadInfo/getInfo/' + id,
    method: 'get'
  })
}

// 新增常用下载
export function addDownloadInfo(data) {
  return request({
    url: '/business/downloadInfo/add',
    method: 'post',
    data: data
  })
}

// 修改常用下载
export function updateDownloadInfo(data) {
  return request({
    url: '/business/downloadInfo/edit',
    method: 'post',
    data: data
  })
}

// 删除常用下载
export function delDownloadInfo(id) {
  return request({
    url: '/business/downloadInfo/remove/' + id,
    method: 'get'
  })
}
